<!--
 * @Author: HeAo
 * @Date: 2021-12-14 14:48:13
 * @LastEditTime: 2021-12-14 14:52:30
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \甘肃农大-2021-12-12\study\day02\4-伸缩盒布局.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .container {
      background-color: cadetblue;
      /* 将当前元素变为伸缩盒 */
      display: flex;
    }

    .container>div {
      width: 200px;
      height: 200px;
      margin: 10px;
      border: 1px solid #333;
      background-color: orange;
    }
  </style>
</head>

<body>
  <div class="container">
    <div id="one"></div>
    <div id="two"></div>
    <div id="three"></div>
  </div>
</body>

</html>